]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
switcherPopup: Avoid unnecessary animation
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Jul 2018 03:20:35 +0000 (05:20 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 6 Aug 2019 12:52:41 +0000 (14:52 +0200)
Ever since commit 28bb0c1fb2, the popup's actual visibility has been
controlled by its :opacity property, not :visible.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654

js/ui/switcherPopup.js

index 9b8cdd617323a41016aca70ba6a5d9483934e001..ec5bbaae933ac097887cc82d4a994ba154756435 100644 (file)
@@ -283,7 +283,7 @@ var SwitcherPopup = GObject.registerClass({
 
     fadeAndDestroy() {
         this._popModal();
-        if (this.visible) {
+        if (this.opacity > 0) {
             Tweener.addTween(this,
                              { opacity: 0,
                                time: POPUP_FADE_OUT_TIME / 1000,